package cn.jorian.framework.bean;

public class DataBean<T> {

    private String interfaceType;
    private String channelType;
    private String trackNo;
    private String interfaceNbr;
    private RecordBean<T> record;

    public String getInterfaceType() {
        return interfaceType;
    }

    public void setInterfaceType(String interfaceType) {
        this.interfaceType = interfaceType;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    public String getTrackNo() {
        return trackNo;
    }

    public void setTrackNo(String trackNo) {
        this.trackNo = trackNo;
    }

    public String getInterfaceNbr() {
        return interfaceNbr;
    }

    public void setInterfaceNbr(String interfaceNbr) {
        this.interfaceNbr = interfaceNbr;
    }

    public RecordBean<T> getRecord() {
        return record;
    }

    public void setRecord(RecordBean<T> record) {
        this.record = record;
    }

    public void addRecord(T t) {
        RecordBean<T> recordBean = new RecordBean<>();
        recordBean.setRecordDtl(t);
        this.record = recordBean;
    }

    public static class RecordBean<T> {
        private T recordDtl;

        public T getRecordDtl() {
            return recordDtl;
        }

        public void setRecordDtl(T recordDtl) {
            this.recordDtl = recordDtl;
        }
    }



}
